import request from '@/utils/request'

// 列表
export function guildList(params) {
  return request({
    url: '/api/products',
    method: 'get',
    params,
  })
}
// 详情
export function guildDetail(params) {
  return request({
    url: '/guild/info',
    method: 'get',
    params,
  })
}
// 添加
export function addGulid(data) {
  return request({
    url: '/api/products',
    method: 'post',
    data,
  })
}
// 编辑
export function editGuild(data,id) {
  return request({
    url: `/api/products/${id}`,
    method: 'put',
    data,
  })
}
// 删除
export function deleteGuild(data,id) {
  return request({
    url: `/api/products/${id}`,
    method: 'delete',
    data
  })
}
